package com.pig4cloud.pig.demo.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pig.demo.feign.Entity.Fans;
import com.pig4cloud.pig.demo.feign.vo.FansVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created by caoxuel on 2020/10/19 13:36
 * @author caoxuel
 */
@Mapper
public interface FansMapper extends BaseMapper<Fans> {
    /**
     * 分页查询粉丝列表
     * @param page
     * @return
     */
    public IPage<FansVO> queryFansList(Page<?> page, @Param("id") Long id);

    /**
     * 分页查询关注人列表
     * @param page
     * @return
     */
    public IPage<FansVO> queryFollowList(Page<?> page, @Param("id") Long id);
}
